package com.codechuan.didi_web.thread;

import com.codechuan.didi_web.entity.SysSuccessOrder;
import com.codechuan.didi_web.utils.DiDiHttpUtil;

public class SubMitOrder implements Runnable{

    // 入参订单实体类
    private final SysSuccessOrder sysSuccessOrder;

    public SubMitOrder(SysSuccessOrder sysSuccessOrder){
        this.sysSuccessOrder = sysSuccessOrder;
    }

    @Override
    public void run() {
        DiDiHttpUtil diDiHttpUtil = new DiDiHttpUtil();
        String orderSetUpTime = diDiHttpUtil.getOrderSetUpTime(sysSuccessOrder.getTicket(), sysSuccessOrder);
        System.out.println( "订单时间是:" + orderSetUpTime + "\t执行抢单的是:" + sysSuccessOrder);
    }



}
